//
//  UIImage+WB.h


#import <UIKit/UIKit.h>

@interface UIImage (WB)
+ (UIImage *)imageWithName:(NSString *)name;

/**返回一张自由拉伸的图片*/
+ (UIImage *)resizedImageWithName:(NSString *)name;
+ (UIImage *)resizedImageWithName:(NSString *)name left:(CGFloat)left top:(CGFloat)top;
/** 设置圆形图片(放到分类中使用) */
- (UIImage *)cutCircleImage;

/**使用blend改变图片颜色*/
- (UIImage *) imageWithTintColor:(UIColor *)tintColor;

/**压缩图片尺寸*/
- (UIImage*)imageScaledToSize:(CGSize)newSize;

/** 将图片压缩至指定大小KB*/
+(NSData *)scaleImage:(UIImage *)image toKb:(NSInteger)kb;


@end
